package com.steven.team.service

import com.alibaba.fastjson.JSONObject
import com.steven.team.pojo.TeamApply

interface TeamService {
    fun addTeam(uid: Long, match:Long,teamName: String, name: String, url: String): JSONObject
    fun updateTeamName(name: String, teamId: Long): JSONObject
    fun updateTeamStatus(teamId: Long, status: Boolean): JSONObject
    fun applyToTeam(apply: TeamApply): JSONObject
    fun queryUserTeam(uid: Long, owner: Long): JSONObject
    fun updateApplyToTeam(applyId: Long, pass: Boolean): JSONObject
    fun queryApplyToMe(owner: Long): JSONObject
    fun queryTeamDetail(uid: Long, teamId: Long): JSONObject
    fun searchMatch(matchName: String, lastId: Long): JSONObject
    fun queryTop5Team(uid: Long): JSONObject
    fun addTeamPageViews(teamId: Long): JSONObject
    fun queryTeamCollections(uid: Long, lastCreateTime: Long): JSONObject
    fun addToTeamCollection(teamId: Long, uid: Long): JSONObject
    fun deleteTeamCollection(uid: Long, teamId: Long): JSONObject
    fun addUserBan(uid: Long): JSONObject
    fun deleteUserBane(uid: Long): JSONObject
    fun searchSameSchoolTeam(uid:Long): JSONObject
    fun searchNewCreateTeam(uid:Long,lastCreateTime:Long): JSONObject
}